from django.db import models
from django.contrib.auth.models import AbstractUser


# Create your models here.


class CustomUser(AbstractUser):
    nick_name = models.CharField(verbose_name="昵称", max_length=11, unique=True, blank=True, null=True)
    head = models.ImageField(verbose_name="头像", upload_to="head/", default="/head/default.png")
    sex = models.CharField(verbose_name="性别", max_length=7, choices=(
        ("man", "男"),
        ("woman", "女"),
        ("secrecy", "保密"),
    ), default="secrecy")
    telephone = models.CharField(verbose_name="手机号", max_length=11, null=True, blank=True, )
